package com.fwj.extendsexample;

/**
 * @author stone.feng
 * @since 2019-01-26
 */
public abstract class Animal {


    public Animal() {
        System.out.println("animal constructor");
    }

    /**
     * eat
     */
    public abstract void eat();

    final public void run() {
        System.out.println("Animal run");
    }

    public void play() {
        System.out.println("Animal run");
    }

    private void jump() {
        System.out.println("Animal jump");
    }

    private final void method() {
        System.out.println("In Base...");
    }

}
